﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Stats
{
    public class CenyRow
    {
        public int cena{get;set;}
        public DateTime date { get; set; }

        public CenyRow(int cena, DateTime date)
        {
            this.cena = cena;
            this.date = date;
        }

        public Dictionary<string,string> ToDictionary()
        {
            Dictionary<string, string> result = new Dictionary<string, string>();
            result.Add("cena", cena.ToString());
            result.Add("datum", String.Format("{0:MM.dd.yyyy}", date));
            return result;
        }

       /* public void SaveToDB()
        {
            Dictionary<string, string> result = new Dictionary<string, string>();
            result.Add("cena", cena.ToString());
            result.Add("datum", String.Format("{0:MM.dd.yyyy}", Date));
            return result;
        }*/

    }
}
